package Vista;

import org.apache.struts2.ServletActionContext;

import Dominio.PerfilData;

import com.opensymphony.xwork2.ActionSupport;

public class verSaldo extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String saldo;
	private PerfilData user;

	public String execute() {
		try {
			user = (PerfilData) ServletActionContext.getRequest().getSession()
					.getAttribute("loggedUser");
			saldo = String.valueOf(user.get_usuario().get_saldo());
			return SUCCESS;
		} catch (Exception e) {
			System.out.println(e.toString());
			return INPUT;
		}
	}

	public void validate() {
	}

	public String getSaldo() {
		return saldo;
	}

	public void setSaldo(String saldo) {
		this.saldo = saldo;
	}
}
